<template>
  <div class="header_bar">
    <img src="@/assets/images/ic_meau-arrow@2x.png" @click="backRouter" />
    <span class="title">{{ title }}</span>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    required: true,
  },
});

const emit = defineEmits(["back"]);
const backRouter = () => {
  emit("back");
};
</script>

<style scoped lang="less">
.header_bar {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  img {
    width: 32px;
    margin-right: 13px;
  }
  .title {
    font-size: 18px;
    color: #000000;
    font-weight: 600;
  }
}
</style>
